cmake_minimum_required(VERSION 3.25)
project(MpiTest)
find_package(MPI REQUIRED)
message(STATUS "Run: ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} ${MPIEXEC_MAX_NUMPROCS} ${MPIEXEC_PREFLAGS} EXECUTABLE ${MPIEXEC_POSTFLAGS} ARGS")

set(CMAKE_CXX_STANDARD 17)

add_executable(MpiTest main.cpp)
target_link_libraries(MpiTest PUBLIC MPI::MPI_CXX)